package com.xuecheng.api.order;

import com.xuecheng.api.learning.model.dto.OrdersDTO;
import com.xuecheng.api.order.model.pay.PayCodeUrlResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

/**
 * <P>
 *	 订单服务API
 * </p>
 */
@Api(value = "订单服务API, 订单生成、查看、取消、删除", tags = "11..订单管理")
public interface OrderApi {
    @ApiOperation("根据课程发布ID生成课程支付订单")
    @ApiImplicitParam(name = "coursePubId", value = "课程发布ID", required = true, dataType = "Long", paramType = "path", example = "1")
    OrdersDTO createOrder(Long coursePubId);
    @ApiOperation("生成支付的地址")
    PayCodeUrlResult createPayCodeResult(String orderNo);
}
